package com.zzj.springbootlearn;

import com.zzj.springbootlearn.autowirecapablebeanfactory.AutoCreateBean;
import com.zzj.springbootlearn.autowirecapablebeanfactory.TestBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;
import org.springframework.web.context.WebApplicationContext;

/**
 * @author AJ
 * @date 2020 2020-11-19 16:49
 */
@Component
public class Init implements CommandLineRunner {
    @Autowired
    AutoCreateBean autoCreateBean;

    @Override
    public void run(String... args) throws Exception {
        autoCreateBean.docreate();
    }
}
